import 'package:mirror/bean/NoticeBean.dart';
import 'package:mirror/service/NetworkService.dart';

class NoticeApi {
  static const _getNoticeUrl = "App-Service/tips/list";

  static Future<List<NoticeBean>?> getNoticeList() async {
    var res = await NetworkService.post(url: _getNoticeUrl, map: {});
    return res.getTypedList<NoticeBean>((map) => NoticeBean.fromJson(map));
  }
}
